package com.huahai.filter;

import com.alibaba.csp.sentinel.slots.block.authority.AuthorityException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

@ControllerAdvice
public class ServerManangeExceptionAdvice {

    @ExceptionHandler(AuthorityException.class)
    String AuthorityExceptionHandler(){
        return "授权规则限制，无法访问！";
    }
}
